<?php

use app\lib\CommonHelp;
use app\models\Audio;
use app\models\Label;
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\web\User;

/**
 * @var yii\web\View $this
 * @var Label[][] $labelsGroup
 *
 */

$this->title = '所有标签';

?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <base href="/">
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>

    <!--    引入字体图表需要的css-->
    <link rel="stylesheet" href="font-awesome-4.2.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/reset.css">
    <link rel="stylesheet" type="text/css" href="/css/sort.css">
    <title>SIGN IN</title>
</head>
<body>
<div class="container-fluid">
    <div class="row title-wrap">
        <div class="col-xs-2 back"><a href="#"><i class="fa fa-arrow-left"></i></a></div>
        <div class="col-xs-8 main-title"><img src="images/title.png" alt="矿大fm"></div>
        <div class="col-xs-2 config"></div>
    </div>
    <div class="content">
        <div class="row search-wrap">
            <div class="search col-xs-10 col-xs-offset-1">
                <?php $form = ActiveForm::begin([
                    'action'=>Url::to(['/']),
                    'method' => 'GET'
                ]); ?>
                <div class="search-icon col-xs-1"><i class="fa fa-search"></i></div>
                <div class="col-xs-11 input-text">
                    <input type="text" name="key" id="search-con" placeholder="搜索关键词">
                </div>
                <?php ActiveForm::end(); ?>
            </div>
        </div>
        <div class="row sort-nav-wrap">
            <?php foreach($labelsGroup as $labels) { ?>
                <div class="col-xs-6 main-part">
                    <div class="main-nav"><span><?= reset($labels)->class ?></span></div>
                    <div class="main-exp"><span>按<?= reset($labels)->class ?>分类</span></div>
                </div>
            <?php } ?>
        </div>
        <div class="row sort-content">
        <?php foreach($labelsGroup as $labels) { ?>
            <div class="col-xs-6">
                <?php foreach($labels as $label) { ?>
                    <a href="<?=Url::to(['/', 'label_id'=>$label->id])?>"><div class="sort main-text"><?= $label->name ?></div></a>
                <?php } ?>
            </div>
        <?php } ?>
        </div>
    </div>
</div>
</body>

<script src="js/lib/jquery/jquery.min.js"></script>
<script src="js/lib/bootstrap/bootstrap.min.js"></script>
<script src="media-element/mediaelement-and-player.min.js"></script>
<script src="js/util/ajax.js"></script>
<script src="js/util/ajax-ui.js"></script>
<script src="js/sort.js"></script>
<div style="display: none;"><script src="http://s11.cnzz.com/z_stat.php?id=1261300538&web_id=1261300538" language="JavaScript"></script></div>
<?php //$this->endBody() ?>
</html>
<?php $this->endPage() ?>